#include "scpdialog.h"

#include <QFileDialog>
#include <QVBoxLayout>
#include <QPushButton>

#include <QString>

ScpDialog::ScpDialog(QWidget *parent) : QWidget(parent)
{
    setWindowTitle("sdkljfsldjfklsdjklf");

    QVBoxLayout *mainLayout = new QVBoxLayout();
    this->setLayout(mainLayout);

    QPushButton *selectFileBtn = new QPushButton("Select File");
    mainLayout->addWidget(selectFileBtn);
    connect(selectFileBtn, &QPushButton::clicked, this, &ScpDialog::selectRpmBtnHandler);

    setFixedSize(400, 300);

}

void ScpDialog::selectRpmBtnHandler()
{
    QString res = "";
    QString fileName = QFileDialog::getOpenFileName(nullptr, "Select File", QDir::homePath());

    qDebug("abcde");
}
